package Level03_two;

import java.math.BigDecimal;
import java.text.DateFormat;

public class Test {
    public static <T> void sum(T a , T b) {
        BigDecimal numa = new BigDecimal(a.toString());
        BigDecimal numb = new BigDecimal(b.toString());
        BigDecimal addnum = numa.add(numb);
        System.out.println(addnum.doubleValue());
    }
    public static void main(String[] args) {
        sum(1,2);
        sum(1.1,2.2);
    }
}
